package titt.service.content;

import titt.head.request.MethodHead;
import titt.head.request.RequestHead;
import titt.io.socket.TITTSocket;
import titt.io.socket.in.TITTInputStream;

public class InternalNuderRequest {

	private final NuderRequest req;
	
	public InternalNuderRequest(RequestHead head, TITTInputStream in) throws Exception {
		req = new NuderRequest(head, in);
	}
	
	public InternalNuderRequest(NuderRequest req) {
		this.req = req;
	}
	
	public NuderRequest getNuderRequest() {
		return req;
	}
	
	public void encodeAndWriteToSocket(TITTSocket s, MethodHead proto) throws Exception {
		req.encodeAndWriteToSocket(s, proto);
	}
	
}
